import request from './request.js'

// 根据id获取商品

export function getById(id,params) {
    return request({
        url: `/reset/good/${id}`,
        method: 'get',
        params
      })
  }

  // 根据关键词获取商品

  export function getByQuery(params) {
      return request({
          url: '/reset/good',
          method: 'get',
          params
        })
    }